package com.bestv.engine.filter;

import com.bestv.engine.model.RecommendationItem;

/**
 * Created by Henry on 14-6-16.
 */
public class TypeFilter implements Filter {
    private int typeId;

    public TypeFilter(int typeId) {
        this.typeId = typeId;
    }

    @Override
    public boolean accept(RecommendationItem item) {
        return item.getTypeId() == 2 || item.getTypeId() == typeId;
    }
}
